<template>
  <div>
    <input type="text" v-model="menuString" />
    <button @click="handleAdd">新增</button>
  </div>
</template>
<script setup>
import { ref, defineEmits } from "vue";

const menuString = ref("");
const emits = defineEmits(["add"]);
const handleAdd = () => {
  emits("add", menuString.value);
};
</script>
<style></style>
